package modelLayer;


public class Loan
{
    // instance variables - replace the example below with your own
    private int id,period;
    private String borrowDate,state;
    private Person person;
    private DVD dvd;
    private Copy copy;
    

    
    public Loan(int id, String borrowDate, int period, String state,Person person,Copy copy, DVD dvd)
    {this.id=id;
        this.borrowDate=borrowDate;
        this.period=period;
        this.state=state;
        this.person=person;
        this.dvd = dvd;
        this.copy=copy;
    }
    public void showLoan()
    {
    	System.out.println("------------------------------------------------");
        System.out.println("BorrowDate:"+this.borrowDate);
        System.out.println("Period:"+this.period);
        System.out.println("State:"+this.state);
        person.showInfo();
        dvd.showDvd();
        copy.showCopy();
    }
    public void setPerson(Person person)
    {
        this.person=person;
    }
    public void setCopy(Copy copy)
    {
        this.copy=copy;
    }
    
    public void setId(int id)
    {
        this.id=id;
    }
    public void setBorrowDate(String borrowDate)
    {
        this.borrowDate=borrowDate;
    }
    public void setPeriod(int period)
    {
        this.period=period;
    }
    public void setState(String state)
    {
        this.state=state;
    }
    public Person getPerson()
    {
        return this.person;
    }
    public Copy getCopy()
    {
        return this.copy;
    }
    public int getId()
    {
        return this.id;
    }
    public String getBorrowDate()
    {
        return this.borrowDate;
    }
    public int getPeriod()
    {
        return this.period;
    }
    public String getState()
    {
        return this.state;
    }

    
}
